﻿namespace PlugNT.Custom
{
    /// <summary>
    /// 页面类型
    /// </summary>
    public enum PageType
    {
        Index = 0,
        Show = 1,
        List = 2
    }

    /// <summary>
    /// 数据表类型
    /// </summary>
    public enum TableType
    {
        Article=0,
        Comment=1,
        Adminer=2,
        Category=3,
        Channel=4,
        Field=5,
        Friendlink=6,
        FriendlinkClass=7,
        Groupadmin=8,
        Grouppages=9,
        Sys=10,
        Tables=11,
        User=12
    }

    /// <summary>
    /// 字段表操作类型
    /// </summary>
    public enum FieldActionType
    {
        add=0,
        update=1,
        delete=2
    }

    /// <summary>
    /// 用户表密码加密类型(0为标准MD5加密，1为自定义加密，2为其他方式加密)
    /// </summary>
    public enum UsersPassType
    {
        standard=0,
        custom=1,
        other=2
    }

    /// <summary>
    /// 字段（页面控件元素类型）
    /// </summary>
    public class FieldHtmlType
    {
        public const string dropdownlistType = "dropdownlist";
        public const string textType = "text";
        public const string textareaType = "textarea";
        public const string editerType = "editer";
    }

    /// <summary>
    /// 字段类型
    /// </summary>
    public class FieldType
    {
        public const string stringType = "string";
        public const string integerType = "integer";
        public const string datetimeType = "datetime";
    }

}
